<template>
    <div>
        <h5 style="color:#999;padding:3% 5% 3%;background:#eee;font-size:1.1rem;">常用功能</h5>
        <van-grid gutter="10" clickable >
            <van-grid-item :icon="item.icon" link-type="navigateTo" :to="{name:item.name,params:{title:item.text,name:'app'}}" :text="item.text" v-for="(item,index) in appGroup" :key="index" />
        </van-grid>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                appGroup:[
                    {
                        icon:'logistics',
                        url:'/buy',
                        text:'采购入库',
                        name:'buy',
                    },
                    {
                        icon:'shop-o',
                        url:'/sale',
                        text:'销货出库',
                        name:'sale',
                    },
                    {
                        icon:'wap-home-o',
                        url:'/inittf',
                        text:'仓库调拨',
                        name:'inittf',
                    },
                    {
                        icon:'wap-home',
                        url:'/inventory',
                        text:'库存盘点',
                        name:'inventory',
                    },
                    {
                        icon:'cart',
                        url:'/inbound',
                        text:'其他入库',
                        name:'inbound',
                    },
                    {
                        icon:'cart-o',
                        url:'/outbound',
                        text:'其他出库',
                        name:'outbound',
                    },
                    {
                        icon:'bag-o',
                        url:'/goods',
                        text:'商品管理',
                        name:'goods',
                    },
                    {
                        icon:'friends-o',
                        url:'/customer',
                        text:'客户管理',
                        name:'customer',
                    },
                ],
            };
        },
        methods: {

        },
        mounted(){
            var me = this;
        },
    }
</script>

<style scoped>

</style>
